﻿@model View_Order
@{
    Layout = null;
    var viewModel = Model ?? new View_Order();
}
    <link href="~/Css/self-upload.css" rel="stylesheet" />
    <div class="text-item">
        <div class="fm-item">
            <span style="vertical-align: middle;">线下支付的订单需要上传支付凭据，支持png和jpg文件，最大不超过4M</span>
        </div>

        <div class="fm-item">
            <div class="thumb-wrap upload-thumb-wrap" id="thumb-wrap">
                @if (!string.IsNullOrEmpty(viewModel.pay_img_url))
                {
                    <div class="thumb-item hadupload">
                        <div class="thumb-item-wrap">
                            <a href="javacript:void(0);" class="img-wrap">
                                <img class="thumb-img" src="@ImageFileBiz.GetImg(viewModel.pay_img_url, "small")" style="width: 100px;margin:auto;">
                                <input type="hidden" name="img_url" value="@viewModel.pay_img_url" />
                            </a>
                        </div>
                        <div class="clear info">
                            @if (viewModel.is_succ != 1)
                            {
                                <a href="javascript:void(0);" class="link">删除</a>
                            }
                            <p class="name">@viewModel.pay_img_url</p>
                        </div>
                    </div>
                }
                @if (string.IsNullOrEmpty(viewModel.pay_img_url))
                {
                    <div class="thumb-item">
                        <div class="thumb-item-wrap">
                            <div class="thumb-img-box">
                                <input class="file-input" name="file" type="file" onchange=" change(this,$(this).parents('.thumb-img-box').siblings('.img-wrap').find('img').get(0)) " _name="img2">
                                <i class="iconfont add-icon"> + </i>
                            </div>
                            <a href="javacript:void(0);" class="img-wrap">
                                <img class="thumb-img" src="">
                                <img class="original-img" src="" style="display:none;">
                            </a>
                        </div>
                        <div class="clear info">
                            <a href="javascript:void(0);" class="link">删除</a><p class="name">...</p>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>

    <!-- 图片逻辑 -->
    <script src="~/Js/self-upload-one.js"></script>
    <script>
        SetMaxCounts(1);
    </script>
